<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>login.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

  </head>
  
  <body>
  <script type="text/javascript">
  	function validate(myform) {
  		if(myform.username.value.length == 0) {
  		alert("请填写用户名！");
  		myform.username.focus();
  		return false;
  		} 
  		if(myform.password.value.length == 0) {
  		alert("请填写密码！");
  		myform.password.focus();
  		return false;
  		} 
  	}
  </script>
    <p>请输入用户名和密码： </p>
    <form name="form1" method="post" action="/webproject2/servlet/login" onsubmit="return validate(this)">
      <table width="252" height="90" border="0">
        <tr>
          <td width="131" height="32">用户名：</td>
          <td width="130"><label for="textfield"></label>
          <input type="text" name="username" id="textfield"></td>
        </tr>
        <tr>
          <td height="34">密码：</td>
          <td><label for="textfield2"></label>
          <input type="password" name="password" id="textfield2"></td>
        </tr>
        <tr>
          <td height="34"><input type="submit" name="submit" id="submit" value="提交"></td>
          <td><input type="reset" name="reset" id="reset" value="重置"></td>
        </tr>
      </table>
    </form>
    <p>&nbsp;</p>
  </body>
</html>
